package net.feling.mcloud.utils;

import android.content.Context;

import net.feling.mcloud.entity.User;

public class UserUtil {

    private static String uid = "b2d3f4s5a6a4";
    private static String CPUfreq = "2600";
    private static String memory = "1024";
    private static String batteryLeft = "86";
    private static String GPSInfo = "lalala";
    private static String deviceId = "";

    private static boolean isNetworkConnect = false;
    //private static Date date;

    public static User getUser(Context context) {
        User user = new User();
        user.setUid(DeviceUtil.getLocalMacAddress());
        user.setCPUfreq(DeviceUtil.getMaxCpuFreq());
        user.setMemory(Config.getAvailMemory(context) + "");
        user.setBatteryLeft(batteryLeft);
        user.setNetworkState(Config.isNetworkConnected(context));

        user.setGPSInfo(GPSInfo);
        user.setDeviceId(deviceId);
        //user.setDate(new Date());
        return user;
    }
}
